<%@ page contentType= "text/html;charset=gb2312" %>

<html>
<%@ include file="../common/base.jsp" %>
<body>

<div id="container">
<%@ include file="../common/header.jsp" %>
	<div id="menu">
		<a href="<c:url value="/common/home.o"/>"><fmt:message key="Home" /></a> > 
		<a href="<c:url value="/step/index.o"/>"><fmt:message key="Task" /></a> > 
		<fmt:message key="Create" />
	    <div  style="float: right" ><fmt:message key="Logged" />: <c:out value="${currentUser.username}" /> (<a href="<c:url value="/common/logout.o"/>"><fmt:message key="Logout" /></a>)</div>
	</div>
	  
	<div id="midbody">
		<div id="leftside">
		 	<br>
		   	<a href="<c:url value="/step/index.o"/>"><fmt:message key="AllTask" /></a>
		</div>
	    <div id="rightside">
	    	<div id="bigbox">
		        <div class="title"><fmt:message key="CreateTask" /></div>
		        <div class="content">
		            <form:form modelAttribute="initProcessCommand">
		                <form:errors path="*" element="div" cssClass="errors"/>
		                <div><div class="form-label"><fmt:message key="Lot" />:</div><form:input path="lot"/></div>
		                <div><div class="form-label"><fmt:message key="Number" />:</div><form:input path="number"/></div>
		                <div><div class="form-label"><fmt:message key="Template" />:</div><form:select path="template.id" items="${templates}" itemValue="id" itemLabel="name"/></div>
						<div><div class="form-label"><fmt:message key="Spec" />:</div><form:select path="stepSpecId" items="${specs}" itemValue="id" itemLabel="name"/></div>
		                <div>
		                	<input type="submit" value="<fmt:message key='Submit' />"/>&nbsp;
		                	<input type="button" onclick="document.location.href='<c:url value="/step/index.o"/>'" value="<fmt:message key='Cancel' />"/>
		                </div>
		            	<p><fmt:message key="TaskComment" /></p>
		            </form:form>
		        </div>
			 </div>
		</div>
	</div>
	<%@ include file="../common/foot.jsp" %>

</div>
    <script type="text/javascript">
        document.getElementById('name').focus();
    </script>

</body>
</html>
